import request from '@/utils/request'

// 登录
export function login(data) {
  return request({
    url: '/manager/login',
    method: 'post',
    data
  })
}

// 获取验证码
export function getCaptcha(params) {
  return request({
    url: '/manager/captcha',
    method: 'GET',
    params: {
      key: params.key
    },
    responseType: 'blob'
  })
}
